import { createWebHistory, createRouter } from 'vue-router'


const HomeView = () => import('@/view/Home.vue')
const AboutView = () => import('@/view/About.vue')
const ShareView = () => import('@/view/Share.vue')

const routes = [

  { path: '/', rredirect: '/home' },
  { path: '/home', component: HomeView },
  { path: '/about', component: AboutView },
  { path: '/share', component: ShareView },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router